package com.bing.habit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("habit")
public class Habit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private int id;

    private String name;

    private String iconUrl;

    private int uid;//用户id

    private Date createTime;//创建时间

    private int totalDays;//总打卡天数

    private int currentContinue;//当前连续天数

    private int mostContinue;//最高连续

    private boolean isClockToday;//今天是否已经打卡 false



}
